<jsp:useBean id="sessiondata" class="bibbletex.models.SessionData"
	scope="session" />
<%@ page import="bibbletex.models.Collaboration, bibbletex.models.Reference, bibbletex.models.SessionData"
		 import="bibbletex.controllers.CollaborationController, bibbletex.controllers.ReferenceController" %>

<%
	Collaboration c = sessiondata.collaboration;
	if (sessiondata.collaboration_is_editable)
		c.deleteReference(request.getParameter("rid"));
%>

<jsp:forward page="/collaboration/show.jsp" />